package com.example.book_system.entity;

import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 该类为书的实例类 以下为属性说明
 * <ul>
 *     <li>isbn 书籍的 ISBN 号码</li>
 *     <li>name 书籍的 名字</li>
 *     <li>author 书籍的 作者</li>
 *     <li>total 书籍的 总量</li>
 *     <li>borrowed 书籍的 被借数量</li>
 *     <li>max 书籍的 最长借阅时间</li>
 *     <li>summary 书籍的 摘要</li>
 *     <li>press 书籍的 出版社</li>
 * </ul>
 *
 * @author BlueRose
 */
@TableName("book")
public class Book {
    private String isbn;
    private String name;
    private String author;
    private int total;
    private int borrow;
    private String price;
    private String type;
    private int max;
    private String summary;
    private String press;
    private int page;
    private String time;
    private double rating;
    private String url;
    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getBorrow() {
        return borrow;
    }

    public void setBorrow(int borrow) {
        this.borrow = borrow;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getRating() {
        return rating;
    }

    public void setRating(double rating) {
        this.rating = rating;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "Book{" +
                "isbn='" + isbn + '\'' +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", total=" + total +
                ", borrow=" + borrow +
                ", price='" + price + '\'' +
                ", type='" + type + '\'' +
                ", max=" + max +
                ", summary='" + summary + '\'' +
                ", press='" + press + '\'' +
                ", page=" + page +
                ", time='" + time + '\'' +
                ", rating=" + rating +
                ", url='" + url + '\'' +
                '}';
    }

}
